const onlineStatusEnum = (function (onlineStatusEnum) {
  onlineStatusEnum[onlineStatusEnum['online'] = 1] = '上线'
  onlineStatusEnum[onlineStatusEnum['offline'] = 2] = '下线'

  return onlineStatusEnum
})({})

const bannerTypeEnum = (function (bannerTypeEnum) {
  bannerTypeEnum[bannerTypeEnum['index'] = 1] = '首页'
  return bannerTypeEnum
})({})

// 生鲜订单状态
const orderStatusEnum = (function (orderStatusEnum) {
  orderStatusEnum[orderStatusEnum['waitingPay'] = 1] = '待支付'
  orderStatusEnum[orderStatusEnum['waitingService'] = 2] = '待提货'
  orderStatusEnum[orderStatusEnum['completed'] = 3] = '已完成'
  return orderStatusEnum
})({})

// 维保订单状态
const orderMStatusEnum = (function (orderMStatusEnum) {
  orderMStatusEnum[orderMStatusEnum['waitingPay'] = 1] = '待支付'
  orderMStatusEnum[orderMStatusEnum['waitingService'] = 2] = '待上门'
  orderMStatusEnum[orderMStatusEnum['completed'] = 3] = '已完成'
  return orderMStatusEnum
})({})

const commonStatusEnum = (function (commonStatusEnum) {
  commonStatusEnum[commonStatusEnum['enable'] = 1] = '启用'
  commonStatusEnum[commonStatusEnum['disable'] = 0] = '禁用'
  return commonStatusEnum
})({})

const commonLogicalEnum = (function (commonLogicalEnum) {
  commonLogicalEnum[commonLogicalEnum['true'] = true] = '是'
  commonLogicalEnum[commonLogicalEnum['false'] = false] = '否'
  return commonLogicalEnum
})({})

const bannerResourceTypeEnum = (function (bannerResourceTypeEnum) {
  bannerResourceTypeEnum[bannerResourceTypeEnum['fresh'] = 1] = '生鲜商品'
  bannerResourceTypeEnum[bannerResourceTypeEnum['maintenance'] = 2] = '维保商品'
  bannerResourceTypeEnum[bannerResourceTypeEnum['freshCategory'] = 3] = '生鲜分类'
  bannerResourceTypeEnum[bannerResourceTypeEnum['maintenanceCategory'] = 4] = '维保详情'
  bannerResourceTypeEnum[bannerResourceTypeEnum['coupon'] = 5] = '优惠卷'
  return bannerResourceTypeEnum
})({})

const userTypeEnum = (function (userTypeEnum) {
  userTypeEnum[userTypeEnum['super'] = 0] = '超级管理员'
  userTypeEnum[userTypeEnum['common'] = 1] = '普通用户'
  userTypeEnum[userTypeEnum['commander'] = 2] = '社区团长'
  userTypeEnum[userTypeEnum['startTimer'] = 3] = '启动轮询'
  return userTypeEnum
})({})

const priceSortTypeEnum = (function (priceSortTypeEnum) {
  priceSortTypeEnum[priceSortTypeEnum['lth'] = 5] = '从低到高'
  priceSortTypeEnum[priceSortTypeEnum['htl'] = 6] = '从高到低'
  return priceSortTypeEnum
})({})

const discountCouponEnum = (function (discountCouponEnum) {
  discountCouponEnum[discountCouponEnum['ms'] = 'ONLINE'] = '满送'
  discountCouponEnum[discountCouponEnum['msj'] = 'OFFLINE'] = '满送卷'
  return discountCouponEnum
})({})

export {
  onlineStatusEnum,
  commonStatusEnum,
  priceSortTypeEnum,
  orderStatusEnum,
  orderMStatusEnum,
  commonLogicalEnum,
  bannerTypeEnum,
  bannerResourceTypeEnum,
  userTypeEnum,
  discountCouponEnum
}
